import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/workflow/mission/getList',
    method: 'post',
    data: query
  })
}

export function fetchMission(id) {
  return request({
    url: '/workflow/mission/getDetail',
    method: 'post',
    data: { id }
  })
}

export function signatureMission(fromdata) {
  return request({
    url: '/workflow/mission/signature',
    method: 'post',
    data: fromdata
  })
}

export function finisheMission(fromdata) {
  return request({
    url: '/workflow/mission/finish',
    method: 'post',
    data: fromdata
  })
}

